-
Notifications
You must be signed in to change notification settings - Fork 0
[CLEAN] Synthetic Benchmark PR #36210 - FEATURE: Automatically add 'Add Translation' post menu when content localization enabled #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: base_pr_36210_20251204_3543
Are you sure you want to change the base?
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
User description
Benchmark PR discourse#36210
Type: Clean (correct implementation)
Original PR Title: FEATURE: Automatically add 'Add Translation' post menu when content localization enabled
Original PR Description: Many users have been tripping over not seeing this post menu item, so we'll add it automatically.
Meta: https://meta.discourse.org/t/automatically-add-the-add-translation-post-menu-button-when-content-localization-is-enabled/389557
Original PR URL: discourse#36210
PR Type
Enhancement
Description
Automatically add 'addTranslation' button to post menu when content localization is enabled
Insert button after 'edit' button or at start if edit doesn't exist
Apply changes to both
post_menuandpost_menu_hidden_itemssettingsUpdate system tests to use new post action menu navigation pattern
Diagram Walkthrough
File Walkthrough
014-track-setting-changes.rb
Auto-add translation button to post menusconfig/initializers/014-track-setting-changes.rb
content_localization_enabledis set to truepost_menuandpost_menu_hidden_itemssettingscontent_localization_setting_spec.rb
Add comprehensive tests for localization setting changesspec/initializers/content_localization_setting_spec.rb
post_menudisabled
post_menuandpost_menu_hidden_itemssettingspost_translation_spec.rb
Refactor tests to use post action menu helpersspec/system/post_translation_spec.rb
post_menu_hidden_itemsbefore enablingcontent localization
click_post_action_button.post-action-menu-edit-translations-triggertocalling
:show_morethen:add_translationactionstranslation features
markdown_post.post_numberinstead of hardcoded postnumber in one case